﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Sac.Web;

public partial class _Default : System.Web.UI.Page
{
    
    protected void Page_Load(object sender, EventArgs e)
    {
        string str = "22";
    }

    protected string GetFirstRoot()
    {
        MenuTreeOperate RootClass = new MenuTreeOperate();
        MenuTree FirstRoot = RootClass.GetFirstRootMenu();
        try
        {
            int i = Session["RolePower"].ToString().IndexOf(FirstRoot.ID_key + "|");
            if (FirstRoot.Menu_Url == null || FirstRoot.Menu_Url == "")
            {
                Server.Transfer("ErrorPage.aspx");
            }
            return FirstRoot.Menu_Url;
        }
        catch
        {
            return "ErrorPage.aspx";
        }
    }
}
